﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace MechServer.Objects.Components.BodyParts
{
	public sealed class Limb : MechServer.Objects.Components.BodyParts.BaseBodyPart
	{
		public Limb(Guid parentObject,
			Enums.LimbType limbType,
			Enums.MobilityStatus actuatorStatus,
			int maxArmorHitPoints,
			int currentArmorHitPoints,
			int maxInnerHitPoints,
			int currentInnerHitPoints,
			Enums.Status status) : base()
		{
			ParentObject = parentObject;

			LimbType						= limbType;
			ActuatorStatus				= actuatorStatus;
			MaxArmorHitPoints			= maxArmorHitPoints;
			CurrentArmorHitPoints	= currentArmorHitPoints;
			MaxInnerHitPoints			= maxInnerHitPoints;
			CurrentInnerHitPoints	= currentInnerHitPoints;

			Status				= status;
			BaseBodyPartType	= MechServer.Objects.Components.BodyParts.Enums.Category.Limb;
		}

		private Enums.MobilityStatus	_actuatorStatus;
		private Enums.LimbType			_limbType;

		#region Properties

		public Enums.MobilityStatus ActuatorStatus
		{
			get
			{
				return _actuatorStatus;
			}
			set
			{
				_actuatorStatus = value;
			}
		}

		public Enums.LimbType LimbType
		{
			get
			{
				return _limbType;
			}
			set
			{
				_limbType = value;

			}
		}

		#endregion
	}
}
